package com.jfpal.pay.client;

import com.jfpal.dto.BaseResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * The interface Apple pay client.
 */
@FeignClient(name = "jfpal-pay-provider")
public interface ApplePayClient {

    /**
     * Recharge base result.
     *
     * @param userId the user id
     * @param amount the amount
     * @return the base result
     */
    @RequestMapping(value = "apple/recharge", method = RequestMethod.POST)
    BaseResult<Boolean> recharge(@RequestParam("userId") Long userId, @RequestParam("amount") Double amount);

}
